import {createWebHashHistory, createRouter} from "vue-router";

const routes = [
    {
        path: '/',
        redirect: '/ds'
    },
    {
        path: '/login',
        name: 'Login',
        component: () => import('../Login.vue')
    },
    {
        path: '/registry',
        name: 'Registry',
        component: () => import('../Registry.vue')
    },
    {
        path: '/auth',
        name: 'Auth',
        component: () => import('../Auth.vue')
    },
    {
        path: '/ds',
        component: () => import('../Layout.vue'),
        redirect: '/ds/record',
        children: [
            {
                path: '/ds/record',
                name: 'Record',
                component: () => import('../views/record/index.vue'),
            },
        ]
    },
]
const router = createRouter({
    history: createWebHashHistory(),
    routes,
})
export default router
